package org.eclipselabs.damos.diagram.ui.internal.properties;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.jface.viewers.IFilter;
import org.eclipselabs.damos.dml.Component;


public class OutputDataTypePropertySectionFilter implements IFilter {

	public boolean select(Object toTest) {
		if (toTest instanceof IAdaptable) {
			Component component = (Component) ((IAdaptable) toTest).getAdapter(Component.class);
			if (component != null && component.isOutputDataTypeSpecifiable()) {
				return true;
			}
		}
		return false;
	}

}
